﻿using System;
using System.Collections.Generic;

namespace DflyingForum.Core.Data.Domain.Entities
{
    /// <summary>
    ///  管理组
    /// </summary>
    public class Group : EntityBase
    {
        private IList<User> _users;
        private IList<UnitRight> _unitRights;

        public virtual string Name { get; set; }

        public virtual IList<User> Users
        {
            get { return _users; }
            set { _users = value; }
        }

        public virtual int Flag
        {
            get;
            set;
        }

        public virtual IList<UnitRight> UnitRights
        {
            get { return _unitRights; }
            set { _unitRights = value; }
        }

        public Group()
        {
            this._users = new List<User>();
            this._unitRights = new List<UnitRight>();
        }
    }
}
